<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script>
			
			function chg(){
				var t=document.getElementById("txt");
				t.value="修改文本内容";
			}
			
			
			
			
			
			
			
			
			
			
			
			
			
		</script>
		
		<input type="text" id="txt" value="初始文本内容" />
		<input type="button" value="更改文本内容" name="btn" onclick="chg();" />
		
		
	</body>
</html>
